extends "../haitian-2/haitian-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("每{cd}秒对炮击最高的敌人及其周围2格内的敌方单位赋予10层<霜冻>", "陨落冰耀", "haitian3", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "haitian3":
		haitian3()

func haitian3():
	var cha = getFirstCha(1, "sortByAtkDesc", true)
	if cha == null:return
	for i in getCellChas(cha.cell, 3, 1):
		castBuff(i, buff.b_shuangDong.new(10))
		if upgraded == 2:
			azurHurtChara(i, att.mgiAtk*3, sys.HurtType.WEAPON, sys.AtkType.SKILL, "现代化改造")